/*
 * @Author: H.
 * @Date: 2021-12-08 16:16:21
 * @LastEditTime: 2021-12-14 13:38:42
 * @Description:
 */
import { ref } from 'vue'
import PageContent from '@/components/page-content'

export function usePageSearch(): any[] {
  const pageContentRef = ref<InstanceType<typeof PageContent>>()
  const handleResetClick = () => {
    pageContentRef.value?.getPageData()
  }
  const handleQueryClick = (queryInfo: any) => {
    pageContentRef.value?.getPageData(queryInfo)
  }
  return [pageContentRef, handleResetClick, handleQueryClick]
}
